package com.zl.rbac.service;

import com.zl.rbac.entity.Role;

/**
 * 角色业务类
 * @InterfaceName: IRoleService
 * @author: suke
 * @since: 2021/1/12 9:26
 */
public interface IRoleService extends IBaseService<Role>{
    public void save(Role role,Integer[] ids) throws Exception ;


    /**
     * 
     * @Title: 根据id查询角色以及包含权限
     * @param id  角色id
     * @return com.zl.rbac.entity.Role
     * @author: suke
     * @since: 2021/1/12 11:19
     */
    public Role queryRoleAndPermissionsById(Integer id)throws Exception ;


    /**
     * 
     * @Title: 修改角色以及分配权限
     * @param role 角色对象
     * @param permissionIds: 重新分配的权限id
     * @return void
     * @author: suke
     * @since: 2021/1/12 11:52
     */
    public void update(Role role,Integer[] permissionIds) throws Exception;
}
